package com.test.Protection;


import com.test.license.LCheck;

/**
 * @author: zouren
 * @date: 2022/3/10
 * @description: 保护
 */
public class ProtectionLTask implements Runnable {
    private LCheck lCheck = LCheck.getInstance();

    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(lCheck.getCheckInterval());
                this.lCheck.check(false);
                if( Pc.getInstance().getState()==0){
                    System.exit(0);
                }
            } catch (InterruptedException e) {
                Constant.error(e);
            }

        }

    }
}
